﻿using Newtonsoft.Json;
using PhysicalExamination5.Interface.PhysicalExaminationManagement;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PhysicalExamination5.Service.PhysicalExaminationManagement
{
    public class SDanWeiWeiHu : IDanWeiWeiHu
    {
        public readonly ISqlSugarClient db;
        public SDanWeiWeiHu(ISqlSugarClient db)
        {
            this.db = db;
        }
        /// <summary>
        /// 查询单位数据
        /// </summary>
        /// <returns></returns>
        public string GetSelDanWeiDataAll()
        {
            int nret = 0; string strFanHuiZhi = "";
            try
            {
                Logger.Singleton.Debug($@"【{System.Reflection.MethodBase.GetCurrentMethod().Name}】");



            PROC_EXIT:
                return JsonConvert.SerializeObject(new ApiResult<object>()
                {
                    Success = nret,
                    Message = strFanHuiZhi,
                    Data = ""
                });
            }
            catch (Exception ex)
            {
                Logger.Singleton.Error($@"【{System.Reflection.MethodBase.GetCurrentMethod().Name}】:报错异常:" + ex.Message);
                return JsonConvert.SerializeObject(new ApiResult<object>()
                {
                    Success = 1000,
                    Message = ex.Message,
                    Data = ""
                });
            }
        }
    }
}
